<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=checkout_success.<br />
 * Displays confirmation details after order has been successfully processed.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2010 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_checkout_success_default.php 5407 2010-12-27 01:35:37Z drbyte $
 */
?>
<div class="minframe fl">
<?php
 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/'.$template_dir.'/box_contact_us.php'));
?>
<div class="bg_box_gray margin_t clear">
<h3 class="gray_box leftBoxBar">My Account</h3>
	<div class="pad_10px pad_t allborder no_border_t">
	<ul class="red_arrow_list">
	<li><a class="red b" href="<?php echo zen_href_link(FILENAME_ACCOUNT,'','SSL');?>">View Orders</a></li>
	<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_EDIT,'','SSL');?>">Account Settings</a></li>
	<li><a href="<?php echo zen_href_link(FILENAME_MANAGER_ADDRESS,'','SSL');?>">Manage Address Book</a></li>
	</ul>
	</div>
</div>
<?
 require(DIR_WS_MODULES . zen_get_module_directory('sideboxes/'.$template_dir.'/account_order_search.php'));
?>
<div class="bg_box_gray margin_t clear">
	<h3 class="gray_box leftBoxBar">Need help</h3>
		<span class="pad_10px pad_t block allborder no_border_t">If you have questions or need help with your account, you may <a class="u" href="<?php echo zen_href_link(FILENAME_FAQS,'','SSL') ?>">contact us</a> to assist you.	</span>
</div>
</div>

<div class="right_big_con">
  <ul id="projects">
    <li class="li1"><span>Your Shopping Cart</span></li>
    <li class="li2"><span>Account Login</span></li>
    <li class="li3"><span>Address Book</span></li>
    <li class="li4"><span>Billing, Shipping & Review</span></li> 
    <li class="current5"><span>Order Complete</span></li>
  </ul>
</div>

<div class="right_big_con">
<div class="success_box">
<div><?php echo TEXT_YOUR_ORDER_NUMBER . '<strong><a class="red" href="'. zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zv_orders_id, 'SSL') . '" target="_blank"> '.zen_get_order_no($zv_orders_id).'</a></strong>'; ?>,Total: <b class="red"><?php echo $currencies->display_price($order_total,$order->Fields['order_tax'],1);?></b></div>
<div><?php echo TEXT_SEE_ORDERS;?></div>
<div><?php echo TEXT_CONTACT_STORE_OWNER;?></div>
</div>

<?php if (DEFINE_CHECKOUT_SUCCESS_STATUS >= 1 and DEFINE_CHECKOUT_SUCCESS_STATUS <= 2) { ?>
<div id="checkoutSuccessMainContent" class="content allborder pad_5">
<?php
/**
 * require the html_defined text for checkout success
 */
  require($define_page);
?>
</div>
<?php } ?>

<!--bof -gift certificate- send or spend box-->
<?php
// only show when there is a GV balance
  if ($customer_has_gv_balance ) {
?>
<div id="sendSpendWrapper">
<?php require($template->get_template_dir('tpl_modules_send_or_spend.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_send_or_spend.php'); ?>
</div>
<?php
  }
?>
<!--eof -gift certificate- send or spend box-->



<!--bof -product notifications box-->
<?php
/**
 * The following creates a list of checkboxes for the customer to select if they wish to be included in product-notification
 * announcements related to products they've just purchased.
 **/
    if ($flag_show_products_notification == true) {
?>
<fieldset  class="dark_border">
<legend><b><?php echo TEXT_NOTIFY_PRODUCTS; ?></b></legend>
<?php echo zen_draw_form('order', zen_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?>

<?php foreach ($notificationsArray as $notifications) { ?>
<?php echo zen_draw_checkbox_field('notify[]', $notifications['products_id'], true, 'id="notify-' . $notifications['counter'] . '"') ;?>
<label class="checkboxLabel" for="<?php echo 'notify-' . $notifications['counter']; ?>"><?php echo $notifications['products_name']; ?></label>
<br />
<?php } ?>
<div class="fr"><?php echo zen_image_submit(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT); ?></div>
</form>
</fieldset>
<?php
    }
?>
<!--eof -product notifications box-->


<!--bof -product downloads module-->
<?php
  if (DOWNLOAD_ENABLED == 'true') require($template->get_template_dir('tpl_modules_downloads.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_downloads.php');
?>
<!--eof -product downloads module-->
<!--bof logoff-->
<div class="pad_5 allborder margin_t fl">
<div>
<?php
  if (isset($_SESSION['customer_guest_id'])) {
    echo TEXT_CHECKOUT_LOGOFF_GUEST;
  } elseif (isset($_SESSION['customer_id'])) {
    echo TEXT_CHECKOUT_LOGOFF_CUSTOMER;
  }
?>
</div>
<div class="fr"><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo zen_image_button(BUTTON_IMAGE_LOG_OFF , BUTTON_LOG_OFF_ALT); ?></a></div>
</div>
<!--eof logoff-->
<br class="clear" />
</div>
<?php  require(DIR_WS_MODULES.zen_get_module_directory('sideboxes/recently_viewed.php'));?>